/**
 * 折线图组件
 */

import BaseChart from './BaseChart';

export const LINE_CHART_CONFIG = {
	chart: {
		type: 'line'
	},
	title: {
		text: '',
		x: -20 //center
	},
	subtitle: {
		text: '',
		x: -20
	},
	xAxis: {
		categories: [/*'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'*/]
	},
	yAxis: {
		title: {
			text: ''
		},
		plotLines: [{
            value: 0,
            width: 1,
            color: '#808080'
        }]
	},
	legend: {
        layout: 'vertical',
        align: 'right',
        verticalAlign: 'middle',
        borderWidth: 0
    },
	series: []
}

export default class LineChart extends BaseChart {
	static defaultProps = {
		title: '折线图',
		subtitle: '正在使用折线图',
		yAxisTitle: '描述'
	};

	constructor(props) {
		super(props, LINE_CHART_CONFIG);
	}
}